
import dao.DaoAdmin;
import javax.swing.JOptionPane;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author ronaldomartins
 */
public class TesteLogin {
    public static void main(String args[]){
        DaoAdmin daoAdmin = new DaoAdmin();
        String usuario = JOptionPane.showInputDialog(null,"Informe o usuario");
        String senha = JOptionPane.showInputDialog(null,"Informe a senha");
        
        if(daoAdmin.login(usuario, senha)){
            JOptionPane.showMessageDialog(null, "Usuário existe");
        }else{
            JOptionPane.showMessageDialog(null, "Usuário nao existe");
        }
    }
}
